﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="shopCart.aspx.cs" Inherits="cart.web.shopCart" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>我的购物车</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="gvCart" runat="server" 
            CellPadding="4" ForeColor="#333333" GridLines="None" 
            AutoGenerateColumns="False" onrowcancelingedit="gvCart_RowCancelingEdit" 
            onrowdeleting="gvCart_RowDeleting" onrowediting="gvCart_RowEditing" 
            onrowupdating="gvCart_RowUpdating" onrowdatabound="gvCart_RowDataBound" ShowFooter="True" 
            >
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="productID" HeaderText="商品编号" ReadOnly="True" />
                <asp:BoundField DataField="prodcutName" HeaderText="商品名" ReadOnly="True" />
                <asp:BoundField HeaderText="单品积分" DataField="score" ReadOnly="True" />
                <asp:BoundField HeaderText="市场价" DataField="marketPrice" ReadOnly="True" />
                <asp:BoundField HeaderText="会员价" DataField="memberPrice" ReadOnly="True" />
                <asp:BoundField HeaderText="数量" DataField="productNumber" />
                <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
                <asp:CommandField DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除吗？')&quot;&gt;删除&lt;/div&gt;" 
                    ShowDeleteButton="True" HeaderText="删除" />
            </Columns>
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        
        <asp:LinkButton ID="lbAddCart" runat="server" onclick="lbAddCart_Click"></asp:LinkButton>
        
    </div>
    </form>
</body>
</html>
